package com.woniuxy.test_likedlist;

/**
 * description: Node <br>
 * date: 2022/2/3 2:15 下午 <br>
 * author: shesaifei <br>
 * version: 1.0 <br>
 */
public class Node {
    //上一个节点
    Node previous;
    //下一个节点
    Node next;
    //元素数据
    Object element;

    public Node(Node previous, Node next, Object element) {
        this.previous = previous;
        this.next = next;
        this.element = element;
    }

    public Node(Object element) {
        this.element = element;
    }
}
